﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace LuKou.Web.Helper
{
    public class ValidateCodeController : Controller
    {
        public ActionResult VerifyImage()
        {
            ValidateCodeType validateCodeType = new ValidateCode_NoiseTwist();
            string code = "6666";
            byte[] bytes = validateCodeType.CreateImage(out code);
            this.Session["VerifyCode"] = code;
            return File(bytes, @"image/jpeg");
        }
    }
}
